Skip to content

Instantly share code, notes, and snippets.

@sxiii
sxiii / p2p-vpns.md
Created September 10, 2021 07:13
P2P VPN List
@0gust1
0gust1 / README.md
Last active December 9, 2025 23:25
How to use SQLite+prisma+nodeJS app on Azure app service

How to use SQLite+prisma+nodeJS app on Azure app service

Context

You want to run an app on Azure appService linux (here a nodeJS app) with a simple SQLite database.

Your have read https://www.sqlite.org/whentouse.html and your app requirements are simple enough (no big concurrency, no horizontal scaling) to consider SQLite, and you don't need yet more sophisticated solutions like PostgreSQL.

You use a NodeJS based app with the Prisma ORM.

@robschmuecker
robschmuecker / README.md
Last active December 9, 2025 23:25
D3.js Drag and Drop, Zoomable, Panning, Collapsible Tree with auto-sizing.

This example pulls together various examples of work with trees in D3.js.

The panning functionality can certainly be improved in my opinion and I would be thrilled to see better solutions contributed.

One can do all manner of housekeeping or server related calls on the drop event to manage a remote tree dataset for example.

Dragging can be performed on any node other than root (flare). Dropping can be done on any node.

Panning can either be done by dragging an empty part of the SVG around or dragging a node towards an edge.

@4poc
4poc / cp437.hpp
Created July 12, 2012 01:16
Code page 437
/*
Code page 437 is the charset used by the original IBM PC,
it includes a wide variety of graphical symbols for ascii
drawings.
In this implementation I define unicode code points that
match the original cp437 symbols. The table also includes
the unique character name and if available the 7-bit
US-ASCII character.
@steven2358
steven2358 / ffmpeg.md
Last active December 9, 2025 23:12
FFmpeg cheat sheet
@andreasonny83
andreasonny83 / RELEASE-NOTES.md
Last active December 9, 2025 23:05
Release Notes Template

Release Notes Template

Based off https://palantir.quip.com/pzRwAVr1bpzf

Pro-tip: look through the github diff between the previous release to see what's changed. The commit titles should give an outline of what's happened.

Upgrade Steps

  • List out, as concretely as possible, any steps users have to take when they upgrade beyond just dumping the dependency.
  • Write pseudocode that highlights what code should change and how.
@enpassant
enpassant / vimwiki2html.md
Last active December 9, 2025 23:02
Convert VimWiki to HTML (markdown, mediawiki)

With this wiki2html.sh bash script and pandoc program, you can convert markdown to html.

Usage: In the vim list section of the .vimrcfile, include options:

let g:vimwiki_list = [{'path': ‘your_wiki_place',
  \ 'path_html': ‘wiki_html_location’,
  \ 'syntax': 'markdown',
 \ 'ext': '.md',
@pesterhazy
pesterhazy / building-sync-systems.md
Last active December 9, 2025 23:01
Building an offline realtime sync engine

So you want to write a sync system for a web app with offline and realtime support? Good luck. You might find the following resources useful.

Overview articles

@maple3142
maple3142 / CVE-2025-55182.http
Last active December 9, 2025 22:57
CVE-2025-55182 React Server Components RCE POC
POST / HTTP/1.1
Host: localhost
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Next-Action: x
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryx8jO2oVc6SWP3Sad
Content-Length: 459
------WebKitFormBoundaryx8jO2oVc6SWP3Sad
Content-Disposition: form-data; name="0"
@o11c
o11c / every-vm-tutorial-you-ever-studied-is-wrong.md
Last active December 9, 2025 22:55
Every VM tutorial you ever studied is wrong (and other compiler/interpreter-related knowledge)

Note: this was originally several Reddit posts, chained and linked. But now that Reddit is dying I've finally moved them out. Sorry about the mess.


URL: https://www.reddit.com/r/ProgrammingLanguages/comments/up206c/stack_machines_for_compilers/i8ikupw/ Summary: stack-based vs register-based in general.

There are a wide variety of machines that can be described as "stack-based" or "register-based", but not all of them are practical. And there are a lot of other decisions that affect that practicality (do variables have names or only address/indexes? fixed-width or variable-width instructions? are you interpreting the bytecode (and if so, are you using machine stack frames?) or turning it into machine code? how many registers are there, and how many are special? how do you represent multiple types of variable? how many scopes are there(various kinds of global, local, member, ...)? how much effort/complexity can you afford to put into your machine? etc.)

  • a pure stack VM can only access the top elemen